import multiprocessing
import sys

from PySide6.QtWidgets import QApplication

from main_ui.main_window import Main_Window

if __name__ == "__main__":
    multiprocessing.freeze_support()        # 处理编译后因多进程导致的窗口持续弹出问题
    app = QApplication(sys.argv)
    # apply_stylesheet(app, theme='light_teal.xml')     # 优化界面，暂时不用
    myWin = Main_Window()
    myWin.show()
    sys.exit(app.exec())

# compile cmd
# pyinstaller -F -w --specpath ./out --workpath ./out --distpath=./out -i ../resources/logo.ico -n 上位机 main.py
# --uac-admin 提升权限

# 加载环境
# pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

